package com.atguigu.java.ai.langchain4j.test;


import dev.langchain4j.model.openai.OpenAiChatModel;

public class T1 {
    public static void main(String[] args) {
        OpenAiChatModel demo = OpenAiChatModel.builder()
                .baseUrl("http://langchain4j.dev/demo/openai/v1")
                .apiKey("demo")
                .modelName("gpt-4o-mini")
                .build();


        String chat = demo.chat("今天是几月几号？");
        System.out.println(chat);
    }
}
